package Day16;

public class Text6 {
    public static void main(String[] args) {
        int[] arr = {1,2,3,4,5};
        int[] arr2 = new int[5];
        for(int i = 0, j = arr.length - 1; i < arr.length; i++,j--){
            arr2[j] = arr[i];
        }
        for (int k = 0; k < arr2.length; k++) {
            System.out.println(arr2[k]);
        }
    }
}
